import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index/index'
import ChartDetail1 from '../components/chartDetail/chartDetail1'
import ChartDetail2 from '../components/chartDetail/chartDetail2'
import MonthReport from '../components/reports/monthReport'
import LastEightChats from '../components/last/last-eight-chats.vue'
import AuthoritySetting from '../components/authority/authority-setting'
import DepartmentList from '../components/authority/department-list'
import MenuList from '../components/authority/menu-setting'
import RoleList from '../components/authority/role-list'
import RoleSetting from '../components/authority/role-setting'
import UserList from '../components/authority/user-list'
import Login from '../components/login/login'
import FiveRisksIncomeReport from '../components/reports/five-risks-income-report'
import FiveRisksStateReport from '../components/reports/five-risks-state-report'
import PensionAddReport from '../components/reports/pension-add-report'
import PersonalPensionReport from '../components/reports/personal-pension-report'
// 欢迎页
import Welcome from '../components/view/welcome/welcome'
// 决策支持类应用
import ColligateAnalysis from '../components/decision/colligate-analysis'
import MedicalAnalysis from '../components/decision/medical-analysis'
import PensionAnalysis from '../components/decision/pension-analysis'
//社保治理类应用
import SocialFund from '../components/application/social-fund'

// 养老支出月度分析
import PensionExpenditureAnalysisYearDetail from '../components/chartDetail/pension-expenditure-analysis-year-detail'
// 个人养老保险待遇月度分析
import PensionExpenditureAnalysisPersonDetail from '../components/chartDetail/pension-expenditure-analysis-person-detail'
// 养老保险抚养比月度分析
import OldRaisingAnalyseDetail from '../components/decision/detail/old-raising-analyse-detail.vue'
// 月度退休预测
import RetirePeoplePredictDetail from '../components/decision/detail/retire-people-predict-detail.vue'
//基于缴费基数的单位分析
import personPayBaseAnalysisDetail from '../components/chartDetail/person-pay-base-analysis-detail'
// 缴费趋势分析
import PaymentNumberAnalysisDetail from '../components/chartDetail/payment-number-analysis-detail'

// 综合决策分析详情
import ComprehensiveDecisionAnalysisDetail from '../components/decision/colligate-component/comprehensive-decision-analysis-detail'
// 基于缴费基数的人员分析 详情
import BaseOnPaymentPeopleAnalyseDetail from '../components/application/social-fund-component/detail/base-on-payment-people-analyse-detail'
// 就诊人员分布情况
import TreatmentStaffDistributionDetail from '../components/decision/medical-component/treatment-staff-distribution-detail'
//疾病详情
import DetailsOfTheDiseaseDetail from '../components/decision/medical-component/details-of-the-disease-detail'
//药品支出详情
import DetailsOfDrugExpenditureDetail from '../components/decision/medical-component/details-of-drug-expenditure-detail'
// 单病种就诊人员分布情况
import SingleDiseaseMedicalPersonnelDistributionDetail from '../components/decision/medical-component/single-disease-medical-personnel-distribution-detail'
//毕业生就业
import GraduateEmployment from '../components/humanResources/graduates-employment'
//毕业生就业详情
import graduateEmploymentDetail from '../components/humanResources/detail/graduates-employment-detail';
//城镇新增就业
import NewEmploymentInCities from '../components/humanResources/new-employment-in-cities';
//城镇新增就业台账
import NewEmploymentInCitiesDetail from '../components/humanResources/detail/new-employment-in-cities-detail'
// 累计缴费情况分析 详情
import AnalysisOfCumulativePaymentDetail from '../components/application/social-fund-component/detail/analysis-of-cumulative-payment-detail'
//大屏展示
import BigScreen from '../components/bigScreen/big-screen';

// 职业供求分析
import OccupationalSupplyDemandAnalysis from '../components/humanResources/occupational-supply-demand-analysis'
// 招聘岗位信息表
import jobInformation from '../components/humanResources/detail/job-information'
// 人才简历信息表
import resumeInformation from '../components/humanResources/detail/resume-information'
Vue.use(Router)
export default new Router({
  routes: [{
    path: '/',
    component:BigScreen,
    // name:'login'
  },
    {
      path: '/index',
      component: Index,
      meta: {keepAlive: true}
    },
    {
      path: '/report/monthReport',
      component: MonthReport
    },
    {
      // 年区域医疗费用增长趋势分析
      path: '/report/chartDetail1/:queryYear/:areaCode/:costType/:medicalCategory/detail',
      name: 'detail',
      component: ChartDetail1
    },
    {
      // 住院占医疗收入比重详情（年）
      path: '/report/chartDetail2/:medicalTypeDetail/detail',
      name: 'detail',
      component: ChartDetail2
    },
    {
      path: '/last/last-eight-chats',
      component: LastEightChats
    }, {
      path: '/authority/user-list',
      component: UserList,
      meta: {keepAlive: true}
    }, {
      path: '/authority/role-setting',
      name:'detail',
      component: RoleSetting,
    }, {
      path: '/authority/authority-setting',
      component: AuthoritySetting,
    }, {
      path: '/authority/department-list',
      component: DepartmentList,
    }, {
      path: '/authority/menu-setting',
      component: MenuList,
    }, {
      path: '/authority/role-list',
      component: RoleList,
      name:'detail',
      meta: {keepAlive: true}
    },
    {
      "path": '/report/five-risks-income-report/:id',
      component: FiveRisksIncomeReport
    }, {
      "path": '/report/five-risks-state-report/:id',
      component: FiveRisksStateReport
    }, {
      "path": '/report/pension-add-report/:id',
      component: PensionAddReport
    }, {
      "path": '/report/personal-pension-report',
      component: PersonalPensionReport
    }, {
      "path": '/welcome',
      component: Welcome
    }, {
      "path": '/decision/colligate-analysis/:id',
      component:ColligateAnalysis ,
      meta: {keepAlive: true}
    },{
      "path": '/decision/medical-analysis',
      component: MedicalAnalysis,
      meta: {keepAlive: true}
    }, {
      "path": '/decision/pension-analysis',
      component: PensionAnalysis,
      meta: {keepAlive: true}
    }, {
      "path": '/application/socialFund/:id',
      component: SocialFund,
      meta: {keepAlive: true}
    },
    {
      // 历年养老支出分析 详情
      "path": '/decision/pension-analysis/pension-expenditure-analysis-year-detail',
      name: 'detail',
      component: PensionExpenditureAnalysisYearDetail
    },
    {
      // 个人养老保险待遇月度分析 详情
      "path": '/decision/pension-analysis/pension-expenditure-analysis-person-detail',
      name: 'detail',
      component: PensionExpenditureAnalysisPersonDetail
    },
    {
      // 养老保险抚养比月度分析
      'path': '/decision/detail/old-raising-analyse-detail',
      name: 'detail',
      component: OldRaisingAnalyseDetail
    },
    {
      // 月度退休预测 详情
      'path': '/decision/detail/retire-people-predict-detail',
      name: 'detail',
      component: RetirePeoplePredictDetail
    },
    {
      // 基于缴费基数的单位分析详情
      'path':'/application/chartDetail/person-pay-base-analysis-detail/detail',
      name: 'detail',
      component:personPayBaseAnalysisDetail
    },
    {
      // 缴费趋势分析
      'path': '/application/payment-number-analysis-detail',
      name: 'detail',
      component: PaymentNumberAnalysisDetail
    },
    {
      // 参保人员分布情况
      'path': '/colligate-analysis/comprehensive-decision-analysis-detail',
      name: 'detail',
      component: ComprehensiveDecisionAnalysisDetail
    },
    {
      // 缴费人员分布情况
      'path': '/application/base-on-payment-people-analyse-detail',
      name: 'detail',
      component: BaseOnPaymentPeopleAnalyseDetail,
    },
    {
      // 就诊人员分布情况
      'path': '/decision/medical-analysis/treatment-staff-distribution-detail',
      name: 'detail',
      component: TreatmentStaffDistributionDetail,
    },
    {
      // 疾病详情
      'path':'/decision/medical-analysis/details-of-the-disease-detail',
      name: 'detail',
      component:DetailsOfTheDiseaseDetail
    },
    {
      // 药品支出详情
      'path':'/decision/medical-analysis/details-or-drug-expenditure-detail',
      name: 'detail',
      component:DetailsOfDrugExpenditureDetail
    },
    {
      // 单病种就诊人员分布情况
      'path': '/decision/medical-analysis/single-disease-medical-personnel-distribution-detail',
      name: 'detail',
      component: SingleDiseaseMedicalPersonnelDistributionDetail
    },
    {
      path:'/humanResources/graduates-employment',
      component:GraduateEmployment
    },{
      path:'/humanResources/detail/graduates-employment-detail',
      name: 'detail',
      component:graduateEmploymentDetail
    },{
      path:'/humanResources/new-employment-in-cities',
      component:NewEmploymentInCities
    },{
      path:'/humanResources/detail/new-employment-in-cities-detail',
      name: 'detail',
      component:NewEmploymentInCitiesDetail
    },
    {
      // 缴费人员分布情况
      'path': '/application/analysis-of-cumulative-payment-detail',
      name: 'detail',
      component: AnalysisOfCumulativePaymentDetail,
    },{
    //大屏展示
      'path':'/big-screen',
      component:BigScreen
    },
    {
      path:'/humanResources/occupational-supply-demand-analysis',
      meta: {keepAlive: true},
      component:OccupationalSupplyDemandAnalysis
    },{
      // 招聘岗位信息表
      'path': '/humanResources/job-information',
      name: 'detail',
      component: jobInformation,
    },{
      // 人才简历信息表
      'path': '/humanResources/resume-information',
      name: 'detail',
      component: resumeInformation,
    },
  ]
})
